package org.fast.cms.common.enums;

public enum DictEnum {
	
	BUSINESS_TYPE("business_type", "业务类型"),
	AGENT_CLASS("agent_class", "代理商类别"),
	AGENT_MANAGE_STATE("agent_manage_state", "代理商管理状态"),
	AGENT_TYPE("agent_type", "代理商类型"),
	PERSON_SCALE("person_scale", "人员规模"),
	AGENT_BIZ_TYPE("agent_biz_type", "代理商业务状态"),
	AGENT_STATUS("agent_status", "代理商状态"),
	NICHE_ORIGIN("niche_origin", "机会来源"),
	CUS_FUNNEL_LEVEL("cus_funnel_level", "漏斗等级"),
	CUS_GRADE("cus_grade", "客户级别"),
	IS_ALLOT("is_allot", "是否分配"),
	CUSTOMER_TYPE("customer_type", "客户类型"),
	CONTACT_TYPE("contact_type", "客户联系类别"), 
	PAY_STATUS("pay_status", "付费状态"), 
	CONTRACT_PAY_STATUS("contract_pay_status", "合同回款"),
	BIZ_PROCESS_TYPE("biz_process_type", "业务过程"),
	BIZ_PROCESSTYPE_HARDWARE("biz_processtype_hardware", "硬件处理过程"),
	DEPOSIT_TYPE("deposit_type", "存款类别"),
	EMPLOYEE_STATUS("employee_status", "员工状态"),
	EXECUTE_STATUS("execute_status", "业务执行状态"),
	EXECUTE_STATUS_HARDWARE("execute_status_hardware", "硬件发货状态"),
	FREEZE_STATUS("freeze_status", "冻结状态"),
	RE_FS_ACCOUNT_STATUS("re_fs_account_status", "关联财务账户状态"),
	SYN_FS_ACCOUNT_STATUS("syn_fs_account_status", "同步财务系统账户状态"),
	SEX("sex", "性别"),
	HARDWAE_LOGISTICS_COMPANY("hardwae_logistics_company", "物流公司"),
	OPP_SOURCE("opp_source", "机会来源"),
	ROLE_SYS_TYPE("role_sys_type", "系统角色类型"),
	TASK_TYPE("task_type", "任务类型"),
	WEIMOB_CUSTOMER_TYPE("weimob_customer_type", "微盟用户类型"),
	OFFICE_TYPE("office_type", "机构类型"),
	OFFICE_GRADE("office_grade", "机构等级"),
	DATA_SCOPE("data_scope", "数据范围"),
	USER_TYPE("user_type", "用户类型"),
	FINANCE_RULE("finance_rule", "财务规则"),
	BIZ_REL_STATUS("biz_rel_status", "关联状态"),
	BIZ_REVALUE_TYPE("biz_revalue_type", "业务续费类别"),
	BIZ_TYPE("biz_type", "业务类别"),
	EDUCATION("education", "学历"),
	APPROVE_STATUS("approve_status", "审批状态"),
	INDUSTRY("industry", "客户行业"),
	PROCESS_TYPE("process_type", "操作类型"),
	ACTIVITY_TYPE("activity_type", "操作类型"),
	STORT_TYPE("store_type", "门店类型"),
	ROLE_TYPE("role_type", "操作类型"),
	DELIVERY_USER("delivery_user", "硬件发货执行人"),
	USER_TITLE("user_title", "职称"),
	REASON_TYPE("reason_type", "原因模块"),
	PERRIOD_UNIT("period_unit","服务期单位"),
	AGENT_REGIST("agent_regist","线上注册"),
	AGENT_CONSULT("agent_consult","线上咨询"),
	NICHE_LEVEL("niche_level","机会紧急程度"),
	IS_FOLLOW("is_follow","是否跟进"),
	FISRT_MODULE("fisrt_module","一级模块"),
	NOTICE_MODULE("notice_module","公告模块"),
	SHARED_MODULE("shared_module","分享地带"),
	SERIES_TYPE("series_type","套餐系列"),
	NICHE_ASSIGN("niche_assign","机会是否分配"),
	NICHE_ORIGIN_SUB("niche_origin_sub","机会来源子类"),
	PRODUCT_TYPE("product_type", "账户类型"),
	JOURNAL_TYPE("journal_type", "流水类型"),
	ALERT_EMAIL("alert_email", "提醒邮箱"),
	CUSTOMER_STATUS("customer_status", "客户状态"),
	rank_time_type("rank_time_type","龙虎榜-时间-类型"),
	contract_status("contract_status", "合同状态"),
	NOTCIE_DISPALY_STATUS("notice_display_status", "显示状态"),
	rank_type("rank_type","龙虎榜-类型"),
	INVOICE_TYPE("invoice_type", "发票类别"),
	INVOICE_STATUS("invoice_status", "发票状态"),
	INVOICE_APPLY_STATUS("invoice_apply_status", "开票申请状态"),
	FUNDS_TYPE("funds_type", "资金类型");
	
	private final String value;
	private final String desc;
	private DictEnum(String value, String desc) {
		this.value = value;
		this.desc = desc;
	}
	
	public static DictEnum getDicEnum(String value) {
		
		for (DictEnum temp : DictEnum.values()) {
			if (temp.getValue().equals(value)) {
				return temp;
			}
		}
		throw new IllegalArgumentException("不存在此种类型的枚举：" + value);
		
	}
	
	public String getValue() {
		return this.value;
	}
	
	public String getDesc() {
		return this.desc;
	}
}
